Re: [NTG-context] What alternative for scantokens( "btex " & texcommands & " etex")?

2020-03-30 Thread Alan Braslau
On 29/03/20 07:06, Gerben Wierda wrote: I’m trying in METAPOST to build a command to pass on to ConTeXt using btex/etex. picture p; p := scantokens( "btex " & texcommands & " etex”); btex/etex is better replaced by textext(). Nevertheless, this does not change anyth

[NTG-context] What alternative for scantokens( "btex " & texcommands & " etex")?

2020-03-29 Thread Gerben Wierda
I’m trying in METAPOST to build a command to pass on to ConTeXt using btex/etex. picture p; p := scantokens( "btex " & texcommands & " etex”); with texcommands a variable that holds a string of TeX commands doesn’t work. The METAPOST parser complains about not finding e

Re: [NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Hans Hagen
On 7/17/2018 3:40 PM, Procházka Lukáš Ing. wrote: Hello, I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check: \setuplayout[page] \startluacode   context.setMPtext("Pare", "1")   context.setMPtext("Pare2&quo

[NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Procházka Lukáš Ing .
Hello, I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check: \setuplayout[page] \startluacode context.setMPtext("Pare", "1") context.setMPtext("Pare2", "22") context.setMPtext("Pare3"

[NTG-context] mptopdf and btex ... etex (was: gnuplot: `! Undefined control sequence.` with format specifier %)

2011-12-11 Thread Mojca Miklavec
On Mon, Dec 12, 2011 at 01:02, Mojca Miklavec wrote: ... however I still have some problems. For some reason ConTeXt only generates dvi files from metapost code which has never been the case before. I need to figure out what is going on. Ouch. mtxrun mptopdf gptest-gnuplot-2-mp.mp MPtoPDF

Re: [NTG-context] textext vs. btex ... etex

2010-08-24 Thread Oliver Buerschaper
no idea how to go about doing it via this approach. It could be made to work from the other direction (by writing lua code to intercept tex nodes) but that is not trivial either. I see. You could use standalone metapost with btex ... etex, that would work. OK. But then I would lose e.g

Re: [NTG-context] textext vs. btex ... etex

2010-08-24 Thread Taco Hoekwater
you want now, but I have no idea how to go about doing it via this approach. It could be made to work from the other direction (by writing lua code to intercept tex nodes) but that is not trivial either. I see. You could use standalone metapost with btex ... etex, that would work. OK

Re: [NTG-context] textext vs. btex ... etex

2010-08-22 Thread Oliver Buerschaper
Now onto step two: how can I typeset each glyph in the formula individually such that it appears precisely in the right location? I must be misreading something here, but I cannot figure out what 'the right location' means. Since textext() always returns a single picture that can't be

Re: [NTG-context] textext vs. btex ... etex

2010-08-22 Thread Taco Hoekwater
glyph. I know what you want now, but I have no idea how to go about doing it via this approach. It could be made to work from the other direction (by writing lua code to intercept tex nodes) but that is not trivial either. You could use standalone metapost with btex ... etex, that would work

Re: [NTG-context] textext vs. btex ... etex

2010-08-21 Thread Oliver Buerschaper
so, if in mkiv you want pieces, you need to textext each snippet that you want as such Alright... in that case how would I make sure that all glyph positions are kept if my TeX material is, say, some complex formula? How could I find the baseline with textext? see mp.mplib for all

Re: [NTG-context] textext vs. btex ... etex

2010-08-21 Thread Taco Hoekwater
On 08/21/2010 04:24 PM, Oliver Buerschaper wrote: Now onto step two: how can I typeset each glyph in the formula individually such that it appears precisely in the right location? I must be misreading something here, but I cannot figure out what 'the right location' means. Best wishes, Taco

Re: [NTG-context] textext vs. btex ... etex

2010-08-18 Thread Oliver Buerschaper
the fact that you have pieces in mkii is a side effect of dvitomp turning dvi output in mp pictures; in the process it combines glyphs that have no kerning and whatever spacing becomes shifts Oh, I didn't know the pieces used to come about by accident... actually, by a rather favourable

Re: [NTG-context] textext vs. btex ... etex

2010-08-18 Thread Khaled Hosny
On Wed, Aug 18, 2010 at 02:20:51PM +0200, Oliver Buerschaper wrote: the fact that you have pieces in mkii is a side effect of dvitomp turning dvi output in mp pictures; in the process it combines glyphs that have no kerning and whatever spacing becomes shifts Oh, I didn't know the

Re: [NTG-context] textext vs. btex ... etex

2010-08-18 Thread Oliver Buerschaper
I always develop a kind of romantic relationship with the tools I use, I either hate it and stop using it no matter what it can or can not do; I hate OpenOffice and Qt, for example, and I would never, willingly use either. On the other hand, when I love some tool I never turn my back to it,

Re: [NTG-context] textext vs. btex ... etex

2010-08-18 Thread Hans Hagen
On 18-8-2010 2:20, Oliver Buerschaper wrote: the fact that you have pieces in mkii is a side effect of dvitomp turning dvi output in mp pictures; in the process it combines glyphs that have no kerning and whatever spacing becomes shifts Oh, I didn't know the pieces used to come about by

[NTG-context] textext vs. btex ... etex

2010-08-17 Thread Oliver Buerschaper
Hi, I've been trying to troubleshoot a problem with TeX labels I ran into the other day... finally I discovered that 1. MkIV (textext) includes TeX material as one single chunk apparently while MkII (btex ... etex) used to include a decomposable picture and that 2. the anchor point

Re: [NTG-context] textext vs. btex ... etex

2010-08-17 Thread Hans Hagen
On 17-8-2010 4:32, Oliver Buerschaper wrote: Hi, I've been trying to troubleshoot a problem with TeX labels I ran into the other day... finally I discovered that 1. MkIV (textext) includes TeX material as one single chunk apparently while MkII (btex ... etex) used to include a decomposable

[NTG-context] Running standalone metapost file omits spaces between btex and etex

2010-05-07 Thread Hongwen Qiu
I found that the following example \starttext \startuseMPgraphic{test} draw btex some text with space etex; \stopuseMPgraphic \useMPgraphic{test} \stoptext can generate the text between btex and etex correct no matter I use MKII or MKIV. But, when I running the following example beginfig(0

Re: [NTG-context] minimals missing etex?

2009-06-11 Thread Mojca Miklavec
--context=current first-setup.log source ./tex/setuptex I get this message on ETEX in the call to first-setup.sh. ...hans/TeX/context/stable/tex/texmf-osx-ppc/bin/mtxrun:8707: attempt to concate nate a nil value (/Users/hans/TeX/context/stable/tex/texmf-context/tex/context/base/cont-en.tex ( /Users

[NTG-context] minimals missing etex?

2009-06-10 Thread Hans van der Meer
this message on ETEX in the call to first-setup.sh. ...hans/TeX/context/stable/tex/texmf-osx-ppc/bin/mtxrun:8707: attempt to concate nate a nil value (/Users/hans/TeX/context/stable/tex/texmf-context/tex/context/base/ cont-en.tex ( /Users/hans/TeX/context/stable/tex/texmf-context/tex/context/base

Re: [NTG-context] missing btex ..etex in mp figure

2008-05-17 Thread Hans Hagen
$a$ etex, .5[z0,z1]);, label.lft(btex $b$ etex, .5[z0,z2]);, endfig;}) \stoplua \stopTEXpage \stoptext there are no labels, but I believe that it's wrong. The MPlib library embedded in luatex does not actually support btex .. etex blocks. It is planned to intercept such blocks in the mkiv

Re: [NTG-context] missing btex ..etex in mp figure

2008-05-17 Thread luigi scarso
(q0.5, p2, q1.5, p4); fill pp withcolor .8white; z0=center pp; picture lab; lab=thelabel(btex $f0$ etex, z0); unfill bbox lab; draw lab; draw q0.5; draw p2; draw q1.5; draw p4; makelabel.top(btex $P$ etex, p2 intersectionpoint q0.5); makelabel.rt(btex $Q$ etex, p2 intersectionpoint q1.5); %endfig

Re: [NTG-context] missing btex ..etex in mp figure

2008-05-16 Thread Taco Hoekwater
luigi scarso wrote: In \starttext \startTEXpage \startlua metapost.process(metafun,{beginfig(1);, a=.7in; b=0.5in;, z0=(0,0); z1=(a,0); z2=(0,b);, z0=.5[z1,z3]=.5[z2,z4];, draw z1..z2..z3..z4..cycle;, drawarrow z0..z1;, drawarrow z0..z2;, label.top(btex $a$ etex, .5[z0,z1

[NTG-context] missing btex ..etex in mp figure

2008-05-15 Thread luigi scarso
In \starttext \startTEXpage \startlua metapost.process(metafun,{beginfig(1);, a=.7in; b=0.5in;, z0=(0,0); z1=(a,0); z2=(0,b);, z0=.5[z1,z3]=.5[z2,z4];, draw z1..z2..z3..z4..cycle;, drawarrow z0..z1;, drawarrow z0..z2;, label.top(btex $a$ etex, .5[z0,z1]);, label.lft(btex $b$ etex, .5[z0,z2

Re: [NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-30 Thread Sanjoy Mahajan
btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic outside btex..etex\quad \reuseMPgraphic{fig} \stoptext works here

Re: [NTG-context] MPenvironment ignored for btex..etex (or should I use sometxt)?

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: Oh, wait, if metapost is fine with the file but ConTeXt isn't, then the error above must be from ConTeXt parsing the metapost code and seeing the \2, then complaining. So am I supposed to use the global option to \startMPenvironment? If it's needed in this case, I think

Re: [NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: Unless I'm doing something very silly, the following should and I am almost certain did work, but it fails with the 2006.09.28 beta: btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin

Re: [NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-29 Thread Sanjoy Mahajan
Hans Hagen wrote: btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic outside btex..etex\quad \reuseMPgraphic{fig} \stoptext works here

[NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-28 Thread Sanjoy Mahajan
Unless I'm doing something very silly, the following should and I am almost certain did work, but it fails with the 2006.09.28 beta: btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic outside btex

[NTG-context] MPenvironment ignored for btex..etex (or should I use sometxt)?

2006-09-28 Thread Sanjoy Mahajan
} label(btex \2 etex, origin); \stopreusableMPgraphic \reuseMPgraphic{fig} \stoptext = The error is (from 3.log): == error snippet === systems : begin file 3 at line 1 color : currentcolor (def) is not defined

Re: [NTG-context] betex -etex block parsing bug

2005-12-21 Thread Willi Egger
Hans bedankt! Willi Hans Hagen wrote: Willi Egger wrote: Hi Hans, thanks for your immediate reply. Indeed it is strange that it runs ok in your environment. But where to put this altered definition? cont-new.tex or so (it runs ok because this btex/etex stuff is also parsed

[NTG-context] betex -etex block parsing bug

2005-12-20 Thread Willi Egger
Hi, It seems that there is a problem with parsing betex - etex blocks in the following situation: I can not say with which version this has been introduced. (I messed up my old TeX, so I have only new ones) I tested this with the version of 19-12-2005 an 30-11-2005. \setMPtext{1}{CENTER

Re: [NTG-context] betex -etex block parsing bug

2005-12-20 Thread Hans Hagen
Willi Egger wrote: Hi, It seems that there is a problem with parsing betex - etex blocks in the following situation: I can not say with which version this has been introduced. (I messed up my old TeX, so I have only new ones) I tested this with the version of 19-12-2005 an 30-11-2005

Re: [NTG-context] betex -etex block parsing bug

2005-12-20 Thread Willi Egger
Hi Hans, thanks for your immediate reply. Indeed it is strange that it runs ok in your environment. But where to put this altered definition? Cheers Willi Hans Hagen wrote: Willi Egger wrote: Hi, It seems that there is a problem with parsing betex - etex blocks in the following

Re: [NTG-context] betex -etex block parsing bug

2005-12-20 Thread Hans Hagen
Willi Egger wrote: Hi Hans, thanks for your immediate reply. Indeed it is strange that it runs ok in your environment. But where to put this altered definition? cont-new.tex or so (it runs ok because this btex/etex stuff is also parsed and cleaned up by texexec) Hans

[NTG-context] tex vs etex

2005-08-05 Thread Hans Hagen
Hi, Is anyone using tex i.e. not pdfetex/aleph/xetex? I'd likt to go etex only which in the end is needed anyway since we run out of token list registers (in etex more we're already past 255) Hans

RE: [NTG-context] tex vs etex

2005-08-05 Thread Idris Samawi Hamid
Hi Hans, I only use aleph and pdfetex. I am concerned however, because aleph uses an older version of etex, and so there may be unintended consequences ( bad for me-) Giuseppe is busy, but maybe he has some initial thoughts on this? Best Idris = Original Message From mailing list

Re: [NTG-context] tex vs etex

2005-08-05 Thread Hans Hagen
Idris Samawi Hamid wrote: Hi Hans, I only use aleph and pdfetex. I am concerned however, because aleph uses an older version of etex, and so there may be unintended consequences ( bad for me-) don't worry, the things that i use are available in aleph; also, the formerly broken register

Re: [NTG-context] Re: btex-etex

2005-04-05 Thread Jiri Polcar
On Mon, Apr 04, 2005 at 10:22:07AM +0200, Hans Hagen wrote: Jiri Polcar wrote: TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002 that's pretty old (we have 5+ now) can you try a newer version? OK. Now I using tetex-2.0.2-21.3 that comes with Fedora Core 3. I download

Re: [NTG-context] Re: btex-etex

2005-04-04 Thread Hans Hagen
Jiri Polcar wrote: TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002 that's pretty old (we have 5+ now) can you try a newer version? This is MetaPost, Version 0.641 (Web2C 7.4.5) (mpgraph.mp ) Transcript written on mpgraph.log. i suppose that the log is ok? Hans

[NTG-context] Re: btex-etex

2005-04-04 Thread Patrick Gundlach
Hello Jiri, TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002 with that ancient version you can try your luck with \protectbufferstrue in cont-sys.tex (copy it from cont-sys.rme if it doesn't exist yet). Patrick -- ConTeXt wiki: http://contextgarden.net

Re: [NTG-context] Re: btex-etex

2005-04-03 Thread h h extern
it original size. My problem is that I have no output also without 'caled 5cm': \setupoutput[pdftex] \starttext \startuseMPgraphic{test} picture p; p := btex TEST etex; draw p; \stopuseMPgraphic \useMPgraphic{test} \stoptext Sorry, I used too complicated example

Re: [NTG-context] Re: btex-etex

2005-04-02 Thread Jiri Polcar
. My problem is that I have no output also without 'caled 5cm': \setupoutput[pdftex] \starttext \startuseMPgraphic{test} picture p; p := btex TEST etex; draw p; \stopuseMPgraphic \useMPgraphic{test} \stoptext Sorry, I used too complicated example to describe

[NTG-context] btex-etex

2005-04-01 Thread Jiri Polcar
Hallo, my ConTeXt ignore btex-etex command. It works as the btex-etex command is empty. No text on output. Simple example: \starttext \startuseMPgraphic{test} picture p; p := btex TEST etex scaled 5cm; draw p; \stopuseMPgraphic \useMPgraphic{test

[NTG-context] Re: btex-etex

2005-04-01 Thread Patrick Gundlach
Hello Jiri, \starttext \startuseMPgraphic{test} picture p; p := btex TEST etex scaled 5cm; draw p; \stopuseMPgraphic \useMPgraphic{test} \stoptext The file works fine here. Except that only some part of the T is visible (large scale factor). Do you

Re: [NTG-context] Re: btex-etex

2005-04-01 Thread Jiri Polcar
On Fri, Apr 01, 2005 at 11:24:37AM +0200, Patrick Gundlach wrote: The file works fine here. Except that only some part of the T is visible (large scale factor). Do you have write18 enabled? (http://contextgarden.net/Texmf.cnf) I set shell_escape = t in

[NTG-context] semicolon in \useMPgraphic btex ... etex

2004-10-16 Thread Laurent Chéno
(* Please excuse my poor english *) Semicolon usage in btex ... etex seems weird to me. Can you help me ? The following source don't produce the expected result : % WRONG \startuseMPgraphic{test} dotlabel.top(btex 2;3 etex, (0,0)) ; \stopuseMPgraphic \starttext

Re: [NTG-context] semicolon in \useMPgraphic btex ... etex

2004-10-16 Thread Taco Hoekwater
... etex seems weird to me. Can you help me ? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] btex ... etex in .mp

2004-08-27 Thread Taco Hoekwater
On Thu, 26 Aug 2004 22:07:23 +0200, Nikolai wrote: Hi! I remember reading somewhere that you can't use btex ... etex in input .mp files, as there is no possibility for them to be processed at that time. That is somewhat incorrect information. You can not use btex ... etex in a normal way

[NTG-context] Re: btex ... etex in .mp

2004-08-27 Thread Nikolai Weibull
* Taco Hoekwater [EMAIL PROTECTED] [Aug 27, 2004 11:28]: I remember reading somewhere that you can't use btex ... etex in input .mp files, as there is no possibility for them to be processed at that time. That is somewhat incorrect information. You can not use btex ... etex in a normal

Re: [NTG-context] Re: btex ... etex in .mp

2004-08-27 Thread Taco Hoekwater
On Fri, 27 Aug 2004 12:32:31 +0200, Nikolai wrote: * Taco Hoekwater [EMAIL PROTECTED] [Aug 27, 2004 11:28]: If you need run-time TeX labels, you can use the textext() macro from metafun, or John Hobby's TEX() macro (available after input tex;) Hm, I tried textext(). Can it be used in

[NTG-context] Re: Re: btex ... etex in .mp

2004-08-27 Thread Nikolai Weibull
() stuff or other generated btex ... etex stuff, but no btex ... etex in the picture itself, the extra run for the labels is not performed. This needs fixing and should probably not be impossible to fix, but I guess it's yet another one of my pushing the limits of ConTeXt/MetaPost-problems. I cannot

Re: [NTG-context] Re: Re: btex ... etex in .mp

2004-08-27 Thread Taco Hoekwater
as well, will check. Anyway, the real problem was that texexec doesn't run with --mptex when it actually needs to. If there are textext() stuff or other generated btex ... etex stuff, but no btex ... etex in the picture itself, the extra run for the labels is not performed. Perhaps

[NTG-context] btex ... etex in .mp

2004-08-26 Thread Nikolai Weibull
Hi! I remember reading somewhere that you can't use btex ... etex in input .mp files, as there is no possibility for them to be processed at that time. I've hit a snag, though, and this would really be a good thing for me to have. Is there any way to get similar behavior? Basically, I want

Re: [NTG-context] numexpr in etex / bug ?

2004-02-14 Thread Giuseppe Bilotta
Thursday, February 12, 2004 Hans Hagen wrote: Hi, A numexpr either ends with a \relax or is delimited by () So, the following works as expected: \number\numexpr(1) test but ... the following gives an error message: \number\numexpr(1) /test so, the expr parser looks beyond the )

Re: [NTG-context] numexpr in etex / bug ?

2004-02-14 Thread Hans Hagen
At 12:59 14/02/2004, you wrote: Observe that this is congruent with the TeX way of scanning for assignments. not entirely since the space is not seen as a delimiter \count0=123 4 \count0=\numexpr(123) 4 So always put a \relax after an expression :) yes, but i'm occasionally surpised when a

Re[2]: [NTG-context] numexpr in etex / bug ?

2004-02-14 Thread Giuseppe Bilotta
Saturday, February 14, 2004 Hans Hagen wrote: So always put a \relax after an expression :) yes, but i'm occasionally surpised when a \relax is pushed back in the list (and for instance acrobat does not like /Whatever 12\relax Well, that's not a \relax that comes from an \..expr command for

[NTG-context] numexpr in etex / bug ?

2004-02-13 Thread Hans Hagen
are behaving a bit strange anyway) Hans PS. for those using etex primitives, recently i ran into a bug in \lastnodetype (resulting in incorrect return values or funny side effects), this is already corrected (by fabrice/olaf) in the yet to come versions

Re: [NTG-context] MetaPost with etex/btex

2003-12-14 Thread Willi Egger
in no label output: \starttext \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode \stoptext I'm using ConTeXt 2003.12.12. By the way, why don't \startMPgraphic and \stopMPgraphic do anything? \setupoutput[pdftex] \starttext \section{Including the MPcode in the placefigure

Re : [NTG-context] MetaPost with etex/btex

2003-12-14 Thread David Munger
garbage between Some and label, and \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode doesn't work at all. Sorry for being that vague. David On 2003-12-14 07:01:34, Willi Egger wrote : Hi David, The use of the different possibilities of including metapost graphics

[NTG-context] Re: Re : MetaPost with etex/btex

2003-12-14 Thread Patrick Gundlach
Hi David, Sorry for being that vague. You are still very vague. Your posted example works fine here. Please report what ConTeXt/texexec version you have. You might think of posting your logfile. Do you have \protectbufferstrue in cont-sys.tex? Patrick -- mon trainsistor j'adore

[NTG-context] Re : [NTG-context] Re: Re : MetaPost with etex/btex

2003-12-14 Thread David Munger
Patrick Gundlach wrote : Do you have \protectbufferstrue in cont-sys.tex? That was the exact point. It fixed it. Thanks a lot! David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] Re : [NTG-context] Re: Re : [NTG-context] Re: Re : MetaPost with etex/btex

2003-12-14 Thread David Munger
what ConTeXt version do you have? It sounds like an older one. texexec says: ConTeXt ver: 2003.12.12 fmt: 2003.12.14 int: english mes: english Freshly downloaded, but poorly installed by a novice... Actually I replaced the ConTeXt part from the debian unstable package source. So teTeX and